<template>
	<view>
		
	<image v-if="type==1" :src="image1" mode="widthFix" style="width: 100%;"></image>
	<image v-if="type==2" :src="getImageUrl('/static/common/hsbz.png')" mode="widthFix" style="width: 100%;"></image>
	<image v-if="type==3" :src="getImageUrl('/static/common/bx.png')" mode="widthFix" style="width: 100%;"></image>
	</view>
</template>

<script>
	

	import {
		agreement
	} from '@/api/index.js'
	export default {
		components: {},
		computed: {

		},
		data() {
			return {
				type:0,
				image1:"https://tongling-data.oss-cn-beijing.aliyuncs.com/2025/10/29/dd42ac8fe8a0461eb6cc5e438bb5f46e/head.png",
				image2:"https://tongling-data.oss-cn-beijing.aliyuncs.com/2025/10/29/a09d65cdd8094a389c23dbf09ae4a1d0/head.png",

image3:'https://tongling-data.oss-cn-beijing.aliyuncs.com/2025/10/29/8c7a44393233480da1ffeff5dbf62233/head.png',
				title:'',
			content:'',
				
			}
		},
		onShow() {

		},
		onLoad(e) {
			this.type=Number(e.type)
			if(this.type==1){
				uni.setNavigationBarTitle({
					title:'业务说明'
				})
			}
			if(this.type==2){
				uni.setNavigationBarTitle({
					title:'回收标准'
				})
			}
			if(this.type==3){
				uni.setNavigationBarTitle({
					title:'快递'
				})
			}
		},
		
		methods: {
			agreement(){
				// 1.用户协议，2.隐私协议
				var url=agreement
				
				var data={
					type:'user'
				}
				if(this.title=='隐私协议'){
					data.type='privacy'
				}
				
				url(data).then(res => {
				this.content=res.data
						
				
					})
			},
		}
	}
</script>

<style lang="scss">
page{
	background-color: #fff;
}
</style>


